package com.leo.springbootmultithreadbasic.buildthread.implementrunnable;

/**
 * <p><b>创建线程的方式二：实现Runnable接口</b></p>
 *
 *
 * @author Leo
 * @version V1.0
 * @date 2021/10/30 9:06 PM
 */
public class Run {
    public static void  main(String[] args) {
        Thread thread = new Thread(new MyRunnable());
        thread.start();
    }

}

class MyRunnable implements Runnable {

    @Override
    public void run() {
        System.out.println("I am a Runnable!");
    }
}
